package date1128.nestedBean;

public class Ball {
	private Person person;
	public Ball() {
	}
	public Ball(Person person) {
		super();
		this.person = person;
	}
	public Person getPerson() {
		return person;
	}
	public void setPerson(Person person) {
		this.person = person;
	}
	public void play() {
		System.out.println("ball is playing,person is "+ person.hashCode());
	}
}
